#{extends 'main.html' /}
#{set title:'Home' /}


<div id=main>

<br/> <a class="buttonS purple" href="@{AdvancedSearch.searchHome()}">Back to advanced search </a><br/>

<form action="@{AdvancedSearch.searchForRelationsSourceDestinationEntity()}" method="GET">
<br/>
<tr><td><b>Search for Relations by source and destination</b><hr></hr></td></tr>


<input type="text" id="search1" name="search1"  />
<span style="color: #c00" class="error">#{error 'search1' /}</span>


<div class="content">
			<div class="row">
				
				<div class="right">
					#{if entityRelationList.size() > 0 }
#{select 'relationName', value:1, id:'select1'}
   #{option None}None#{/option}
    #{list items:0..entityRelationList.size()-1, as:'i'}
      #{option entityRelationList.get(i).relationName}${entityRelationList.get(i).relationName}#{/option}
    #{/list}
#{/select}
#{/if}
#{else}
   <br/> <b><u>There are currently no Relations</u></b><br/><br/>
#{/else}

               </div>
               </div>
               </div>
               
               
 <input type="text" id="search3" name="search3" />
<span style="color: #c00" class="error">#{error 'search3' /}</span>

<input type="submit" id= "submit" name="search" value="search" />
 
 #{if flash.error}
    <p style="color:#c00">
        ${flash.error}
    </p>
#{/if}
               
 </form>
 </div>